package com.shc.community;

import com.shc.community.utils.SensitiveFilter;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;

import java.lang.annotation.Target;

@SpringBootTest
@ContextConfiguration(classes = CommunityApplication.class)
public class TextSensitiveFilter {

    @Autowired
    private SensitiveFilter sensitiveFilter;

    @Test
    public void testSensitiveFilter(){

        String text = "可以赌博，可以吸毒，可以开票";

        String s = sensitiveFilter.filter(text);
        System.out.println(s);

    }

}
